export default {
    tab: 'basic',
    type: 'static',
    name: 'button',
    title: '按钮组件',
    pic: '',
    width: 375,
    height: 42,
    data: {
        props: {
            children: {
                title: '文本',
                valueType: 'input',
                initialValue: '文本',
            },
            color: {
                title: '文字颜色',
                valueType: 'color',
                initialValue: 'white',
            },
            backgroundColor: {
                title: '按钮背景色',
                valueType: 'color',
                initialValue: '#722ed1',
            },
            fontSize: {
                title: '字号',
                valueType: 'digit',
                initialValue: '18',
            },
            textAlign: {
                title: '水平对齐',
                valueType: 'radioButton',
                initialValue: 'center',
                valueEnum: {
                    unset: { text: '不设置' },
                    left: { text: '左' },
                    center: { text: '中' },
                    right: { text: '右' },
                },
                // 上下布局， 默认为左右布局
                formItemProps: {
                    labelCol: { span: 24 },
                    wrapperCol: { span: 24} 
                }
            },
            fontFamily: {
                title: '字体',
                valueType: 'select',
                initialValue: '宋体',
                valueEnum: {
                    '宋体': '宋体',
                    '黑体': '黑体',
                    '微软雅黑': '微软雅黑',
                }
            },
            fontWeight: {
                title: '字体加粗',
                valueType: 'switch',
                initialValue: false,
            },
            textIndent: {
                title: '字体缩进',
                valueType: 'digit',
                initialValue: 0,
            },
            borderRadius: {
                title: '圆角',
                valueType: 'digit',
                initialValue: 16,
            },
            paddingHorizontal: {
                title: '左右边距',
                valueType: 'digit',
                initialValue: 15,
            },
            paddingVertical: {
                title: '上下边距',
                valueType: 'digit',
                initialValue: 5,
            }
        }
    },
}